<?php
namespace Home\Controller;
use Common\Controller\CommonController;

class IndexController extends CommonController {
	
	function _initialize(){
		parent::_initialize();
		$LG_USER = session('LG_USER');
		if(empty($LG_USER)){
        	$this->error('请先登录', U('/Public/login')); 
        } 
		$this->assign('LG_USER',session('LG_USER')); 
	}
	
	function index(){
		$this->display('index');
	}
	
	function page(){
		$this->display('page');
	}
	function form(){
		$this->display('form');
	}
	
}